/*
 * monster.h
 *
 *  Created on: 28 mars 2013
 *      Author: Mouroux
 */


#ifndef MONSTER_H_
#define MONSTER_H_

#include <stdio.h>
#include <stdlib.h>
#include "SDL.h"
#include "SDL_image.h"
#include "../include/constant.h"

enum e_way {
	NORTH = 0, SOUTH, WEST, EAST
};

typedef struct s_monster * t_monster;

// Returns the current position of the monster
extern int monster_get_x(t_monster monster);
extern int monster_get_y(t_monster monster);

// Set the direction of the next move of the monster
extern void monster_set_current_way(t_monster monster, enum e_way way);

// Load the monster position from the map
extern void monster_from_map(t_monster monster, t_map map);

// Move the player according to the current direction
extern int monster_move(t_monster monster, t_map map);

// Display the monster on the screen
extern void monster_display(t_monster monster, SDL_Surface *screen);

#endif /* MONSTER_H_ */

